/**
 * 
 */
package br.srv.full.virtual.entities.persons;

import java.io.Serializable;

/**
 * @author Delfino
 * 
 */
public class PkWorker implements Serializable {

	private Integer userId;
	private String roleName;
	private Integer clientId;

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object p_obj) {
		boolean l_equals = p_obj instanceof PkWorker;
		if (l_equals) {
			PkWorker l_workerId = (PkWorker) p_obj;
			l_equals &= userId.equals(l_workerId.userId);
			l_equals &= roleName.equals(l_workerId.roleName);
			l_equals &= clientId.equals(l_workerId.clientId);
		}
		return l_equals;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		return super.hashCode();
	}
}
